package com.example.noobpackage.tool

import com.example.noobpackage.R

object ExpressIconUtil {
    // "圆通", "中通", "申通", "韵达", "天天", "顺丰", "百世", "邮政"
    fun getIconResource(name: String): Int {
        return when (name) {
            "圆通" -> R.drawable.express_yto
            "中通" -> R.drawable.express_zto
            "申通" -> R.drawable.express_sto
            "韵达" -> R.drawable.express_yd
            "天天" -> R.drawable.express_tt
            "顺丰" -> R.drawable.express_sf
            "百世" -> R.drawable.express_be
            "邮政" -> R.drawable.express_cp
            else -> R.drawable.express_none
        }
    }

}